public class N_factorial {
    public static int Fac(int x){
        int ret = 1;
        for (int i=x;i>=2;i--){
            int num=0;
            ret*=i;
        }
        return ret;
    }
    public static void main(String[] args) {
        int x= 6;
        int ret = Fac(x);
        System.out.println(ret);

    }
}
